home *** CD-ROM | disk | FTP | other *** search
/ Acorn RISC PD-CD 1 / Acorn RISC PD-CD 1.iso / languages / gawk / makefile < prev    next >
Encoding:
Makefile  |  1991-03-08  |  2.1 KB  |  87 lines

  1. # Makefile for GNU Awk (for use with Archimedes ANSI C V3.0)
  2. #
  3. # Rewritten by Paul Moore, January 1990.
  4. #
  5. # Copyright (C) 1986, 1988, 1989 the Free Software Foundation, Inc.
  6. # This file is part of GAWK, the GNU implementation of the
  7. # AWK Progamming Language.
  8. # GAWK is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 1, or (at your option)
  11. # any later version.
  12. # GAWK is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. # You should have received a copy of the GNU General Public License
  17. # along with GAWK; see the file COPYING.  If not, write to
  18. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # CFLAGS: options to the C compiler
  21. #
  22. #    -w    don't bother about warning messages
  23. #
  24.   
  25. CFLAGS= -w
  26.  
  27. SRC =    C.Array C.AwkTab C.Builtin C.Debug C.Eval \
  28.     C.Field C.Io C.Main C.Msg C.Node C.Regex \
  29.     C.Version
  30.  
  31. AWKOBJS = O.Array O.AwkTab O.Builtin O.Debug O.Eval \
  32.       O.Field O.Io O.Main O.Msg O.Node O.Regex \
  33.       O.Version
  34.  
  35. # Parser to use on grammar -- if you don't have bison use the first one
  36. # y.awk not converted yet! Use supplied c.awk_tab
  37. #PARSER = yacc
  38. #PARSOUT= ytab.c
  39. #PARSER = bison -y
  40. #PARSOUT= y_tab.c
  41. #PARSFLAGS=-v
  42.  
  43. # LIBS
  44. #    Standard object code libraries to use
  45. LIBS = Lib:Stubs.o Lib:Utils.o
  46.  
  47. # BIN
  48. #    Place to install the compiled code
  49. BIN = adfs::HardDisc4.$$.Library.Gnu
  50.  
  51. # Phony (ie utility) targets
  52.  
  53. .PHONY: all install clean clobber
  54.  
  55. all: !RunImage
  56.  
  57. install: !RunImage
  58.     Copy !RunImage $(BIN).Gawk FQ~C~V
  59.     Access $(BIN).Gawk R
  60.  
  61. clean:
  62.     $(dolines i,$(AWKOBJS),remove $i)
  63.  
  64. clobber: clean
  65.     remove !RunImage
  66.  
  67. # OK - this is the major target!
  68.  
  69. !RunImage: $(AWKOBJS)
  70.     link -o !RunImage $(LINKFLAGS) $(AWKOBJS) $(LIBS)
  71.     squeeze !RunImage
  72.  
  73. # Now for the various dependencies
  74.  
  75. $(AWKOBJS): H.Awk
  76.  
  77. # Not just yet...
  78. #
  79. #c.awk_tab: y.awk
  80. #    @-del awk_tab.c
  81. #    $(PARSER) $(PARSFLAGS) awk.y
  82. #    -rename $(PARSOUT) awk_tab.c
  83.